<template>
	<web-view :src="meetingUrl"></web-view>		
</template>

<script>
import { MEETING_URL } from "@/config/app"
export default {
  data() {
    return {
      meetingUrl: '',
	  lang:getApp().globalData.lang,
	  userinfo:{},
	  userToken:'',
	  MEETING_URL,
	  meetingRoomId:'',
	  startMeetingId:'',
    }
  },
  onLoad(options) {
    // 获取传递的参数
	uni.setNavigationBarTitle({
		title: this.$t("视频会议")
	})
	this.userinfo = uni.getStorageSync('userInfoFull')
	this.userToken = uni.getStorageSync('xzdToken');
	this.meetingRoomId=options.meetingRoomId
	this.startMeetingId=options.startMeetingId
	if(options.meetingRoomId!=''&&options.startMeetingId!=''){
		this.meetingUrl=this.MEETING_URL+'?userId='+this.userinfo.user_id+'&roomId='+options.meetingRoomId+'&token='+this.userToken+'&startMeetingId='+this.startMeetingId+'&langType='+(this.lang=='ru'?'1':'0')+'&timestamp='+new Date().getTime()
	  console.log('webview',this.meetingUrl)
	}
   
  },
  onShow() {
  },
}
</script>

<style>
</style>